import {
    UserOutlined,
    VideoCameraOutlined,
    UploadOutlined,
  } from '@ant-design/icons';

import WebsiteDataPage from '../components/websiteDataPage/index';
import UserManagePage from '../components/userManagePage/index';
import ContentManagePage from '../components/contentManagePage/index';
import Login from '../views/login';
import ManageApp from '../views/manageApp';
import AddArticle from '../components/addArticle';

export const routes = [
    {
        id:1,
        title:'网站数据',
        icon:<UserOutlined />,
        path:'/management/websitedata',
        component:WebsiteDataPage
    },{
        id:2,
        title:'用户管理',
        icon:<VideoCameraOutlined />,
        path:'/management/usersmanage',
        component:UserManagePage
    },{
        id:3,
        title:'内容管理',
        icon:<UploadOutlined />,
        path:'/management/contentmanage',
        component:ContentManagePage
    }
] 

export const loginRoute = {
    path:'/management/login',
    component:Login
}

export const manageAppRoute = {
    path:'/management',
    component:ManageApp
}

export const addArticleRoute = {
    path:'/management/contentmanage/addarticle',
    component:AddArticle
}